package com.qishao.controller;

import com.qishao.service_base.reponse.Response;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

/**
 * @Author： xushaoqi
 * @Date：2021/9/12
 */
@Api("临时登录Controller")
@RestController
@RequestMapping("/eduService/userLogin")
@CrossOrigin //跨域注解
public class EduLoginController {

    //login
    @PostMapping("/login")
    public Response login(){
        return Response.ok().data("token","admin");
    }


    //info
    @GetMapping("/info")
    public Response info(){
        return Response.ok().data("roles","[admin]").data("name","admin").data("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }

}
